package top.eggcode.system.modules.user.model;

import lombok.Data;
import top.eggcode.common.model.PageQuery;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/10 10:14
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Data
public class PowerQuery extends PageQuery {

    private String name;
    private String path;
    /**
     * 排序字段（名称）
     */
    private String orderField;
    /**
     * 排序规则，升序/降序
     */
    private String orderRule;

    {
        this.orderField = "createdAt";
        this.orderRule = "asc";
    }

    public PowerQuery() {
        this.sort = "createdAt";
    }

}
